package com.wenlin.myproduction.bean;


import java.util.List;

public class Event {

    public static class DownloadEvent {
        public String taskName;
        public String url;
        public String savePath;
        public int progress;
        public String speed;

        public DownloadEvent(String taskName, String url, String savePath, int progress, String speed) {
            this.taskName = taskName;
            this.url = url;
            this.savePath = savePath;
            this.progress = progress;
            this.speed = speed;
        }
    }

    public static class DownloadManagerEvent {
        public long downloadId;
        public boolean isComplete;

        public DownloadManagerEvent(long downloadId, boolean isComplete) {
            this.downloadId = downloadId;
            this.isComplete = isComplete;
        }
    }

    public static class NetWorkChangeEvent {
        public boolean isConnect;

        public NetWorkChangeEvent(boolean isConnect) {
            this.isConnect = isConnect;
        }
    }

    //返回登录事件
    public static class LoginBackEvent {

    }

    //退出登录事件
    public static class LogoutEvent {

    }

    //刷新头像事件
    public static class RefreshAvatarEvent {
        public String url;

        public RefreshAvatarEvent(String url) {
            this.url = url;
        }
    }

    //换书事件
    public static class ChangeBookEvent {

    }

    //重新请求用户信息事件
    public static class GetUserInfoEvent {

    }

    //刷新请求用户信息事件
    public static class RefreshUserInfoEvent {

    }

    //刷新首页
    public static class RefreshHomeEvent {

    }

    //屏幕广播事件
    public static class ScreenChangeEvent {
        public boolean isScreenOn;

        public ScreenChangeEvent(boolean isScreenOn) {
            this.isScreenOn = isScreenOn;
        }
    }

    //
    public static class EarnedDiamondEvent {
        public int EarnedDiamond;

        public EarnedDiamondEvent(int EarnedDiamond) {
            this.EarnedDiamond = EarnedDiamond;
        }
    }

    public static class CheckInEvent {
        public long startTime;
        public long endTime;
        public long readTime;

        public CheckInEvent(long startTime, long endTime, long readTime) {
            this.startTime = startTime;
            this.endTime = endTime;
            this.readTime = readTime;
        }
    }

    public static class PlayStateEvent {
        public boolean isStart;
        public int ResId;

        public PlayStateEvent(boolean isStart, int ResId) {
            this.isStart = isStart;
            this.ResId = ResId;
        }
    }

    public static class RefleshAudioEvent {
        public RefleshAudioEvent() {

        }
    }

    public static class RefleshChenckInEvent {
        public RefleshChenckInEvent() {

        }
    }

    //更新apk事件
    public static class UpdateAPPEvent {

    }

    //安装apk事件
    public static class InstallAPKEvent {

        public String packageName;
        public boolean isSuccess;

        public InstallAPKEvent(boolean isSuccess, String packageName) {
            this.isSuccess = isSuccess;
            this.packageName = packageName;
        }
    }

    //apk下载完成事件
    public static class DownloadAPKEvent {

        public String packageName;//包名
        public boolean isDownloadComplete;//是否下载完成

        public DownloadAPKEvent(boolean isDownloadComplete, String packageName) {
            this.isDownloadComplete = isDownloadComplete;
            this.packageName = packageName;
        }
    }

    //更新配置
    public static class SysConfigEvent {

    }

    //日期更改事件
    public static class DateChangeEvent {

    }

    public static class DeleteMySoundEvent {
        public int resId;

        public DeleteMySoundEvent(int resId) {
            this.resId = resId;
        }
    }

    public static class SpeakTimeEvent {
        public long duration;
        public int number;
        public String key;

        public SpeakTimeEvent(String key, int number, long duration) {
            this.duration = duration;
            this.number = number;
            this.key = key;
        }
    }

    public static class ReadTimeEvent {
        public long readTime;

        public ReadTimeEvent(long readTime) {
            this.readTime = readTime;
        }
    }

    public static class RefleshEarDataEvent {
        public ResEn resEn;
        public int subType;
        public int position;
        public List<ResEn> currentPlayList;

        public RefleshEarDataEvent(ResEn resEn, int subType, int position, List<ResEn> currentPlayList) {
            this.resEn = resEn;
            this.subType = subType;
            this.position = position;
            this.currentPlayList = currentPlayList;
        }
    }

    //刷新应用商店
    public static class RefreshAppStore {

    }

    //刷新桌面编辑模式
    public static class RefreshLauncherEditMode {
        public boolean isEidtMode;
        public  RefreshLauncherEditMode(boolean isEidtMode){
            this.isEidtMode = isEidtMode;
        }
    }

    //回到MyEnglish
    public static class BackToMyEnglish{

    }

    //卸载事件
    public static class UnInstallApp {
        public VersionModel versionModel;
        public UnInstallApp(VersionModel versionModel){
            this.versionModel = versionModel;
        }
    }

    //下载事件
    public static class DownloadApp {
        public VersionModel versionModel;
        public boolean isRemove = false;
        public DownloadApp(VersionModel versionModel){
            this.versionModel = versionModel;
        }
        public DownloadApp(VersionModel versionModel,boolean isRemove){
            this.versionModel = versionModel;
            this.isRemove = isRemove;
        }
    }
}
